package com.borjabravo.readmoretextviewsample;

import com.borjabravo.readmoretextviewsample.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
        // 隐藏状态栏
        WindowManager.getInstance().getTopWindow().get().setStatusBarColor(Color.WHITE.getValue()); // 设置状态栏颜色
    }
}
